#include "GameData.h"

USING_NS_CC;
GameData::GameData()
{
}

GameData::~GameData()
{
}

bool GameData::init()
{
	return true;
}

bool GameData::loadFile( std::string filePath )
{
	unsigned char* pBuffer = NULL;
	long bufferSize = 0;

	pBuffer = FileUtils::getInstance()->getFileData(filePath.c_str(), "r", &bufferSize);

	if (pBuffer)
	{
		tinyxml2::XMLError e = doc.Parse((const char*)pBuffer);
		return e == tinyxml2::XML_SUCCESS;
	}
	return false;
}
